//
//  DetailData.m
//  __PRODUCTNAME__
//
//  Created by 曹曹 on 16/08/16
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "DetailData.h"
#import "DetailSonglist.h"
#import "Albumrightkey.h"

@implementation DetailData

+ (NSDictionary *)objectClassInArray{
    return @{@"songList" : [DetailSonglist class]};
}

- (void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"songList"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSDictionary *dictionary in value) {
            DetailSonglist *songlist = [DetailSonglist modelWithDictionary:dictionary];
            [array addObject:songlist];
        }
        _songList = array;
    }
    if ([key isEqualToString:@"albumRightKey"]) {
        _albumRightKey = [Albumrightkey modelWithDictionary:value];
    }
}

@end
